{template "content","header"}
<link href="{$CSS_PATH}link.css" rel="stylesheet" type="text/css" />
<!--main-->
<div class="main">
	<!--left_bar-->
	{yun:link do="get_type" typeid="$type_id"}
     {php $type_arr = $data;}
  	 {/yun}
	<div class="col-left"> 
    <div class="crumbs"><a href="{SITE_URL}">网站首页</a><span> &gt; </span><a href="{U('link')}">友情链接</a><span> &gt; </span>{$type_arr[name]}</div>
    <div class="box boxsbg cboxs">
     
 	 	<h5>{$type_arr[name]} </h5>
        <div class="tag_a">
        	{yun:link do="lists" typeid="$type_id" linktype="1" order="desc" num="6" return="dat"}
				{loop $dat $v}
	       		 <a href="{$v[url]}" title="{$v[name]}"  target="_blank"><img src="{$v[logo]}" width="92" height="31" /></a>
		        {/loop}
			{/yun}
         </div>
		 
		{yun:link do="lists" typeid="$type_id" linktype="0" order="desc" num="2" page="$_GET['page']" return="dat"}
        <div class="tag_a">
  				{loop $dat $v}
	       		 <a href="{$v[url]}" title="{$v[name]}" target="_blank">{$v[name]} </a>
		        {/loop}
        </div>
        {/yun}
		 <div id="pages">{$pages}</div>
         </div>
		 
    </div>
    <!--right_bar-->
    <div class="col-auto">
    	<!--广告228x90-->
        <div class="box">
            <h5 class="title-2">友情链接分类</h5>
            <div class="tag_a">
            <a href="{U('link/index/list_type',array('type_id'=>0))}" title="默认分类">默认分类</a>
            {yun:link do="type_lists" listorder="desc"}
            {loop $data $type_v}
            <a href="{{U('link/index/list_type',array('type_id'=>$type_v[typeid]))}}" title="{$type_v[name]}">{$type_v[name]}</a>
            {/loop}
            {/yun}
             </div>
        </div>
        <div class="bk10"></div>
        {if isset($setting['is_post']) && $setting['is_post']=='1'}
        <div class="txt_c">
            <a href="{U('link/index/register')}" class="sqlj_btn"></a>
        </div>
        {/if}
    </div>
</div>
{template "content","footer"}